<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function showImage(){
				$("#myimage").show();
			}
			function hideImage(){
				$("#myimage").hide();
			}
		</script>
		<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
	</head>
	<body>
		<img id="myimage" src="img/preview.jpg"  height="200px"/><br />
		<button onclick="showImage()">显示图片</button>
		<button onclick="hideImage()">隐藏图片</button>
	</body>
</html>
